package com.sdkj.interceptor;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * 服务启动/关闭 监听器
 * @author admin
 *
 */
public class ServerListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) { 
		System.out.println("server starting...");
		ServletContext application = arg0.getServletContext(); 
		application.setAttribute("imgSortNo", 1);
	}

}
